﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true" codefile="SerachResult.ascx.vb" Inherits="NVPortal.Modules.NVNews.Search.inc_SerachResult" %>
<%@ Register TagName="Paging" TagPrefix="Dotnetnuke" Src="~/Controls/ctlMiniPaging.ascx" %>
<script type="text/javascript" language="JavaScript" src="Controls/popcalendar.js"></script>


<table width="100%" cellspacing="0">
    <tr>
        <td style="width:100%">
            <asp:TextBox ID="txtSearch" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td style="padding-left:5px;">
            <asp:Button class="button_Search" ID="btnSearch" runat="server" Text="Tìm kiếm" BackColor="#ffffff" Font-Bold="true"  Width="70px" />
        </td>
    </tr>
    <tr>
        <td style="background-color:#f0f0f0">
            <asp:RadioButtonList ID="rbtChoice" runat="server" ForeColor="#02509e" RepeatDirection="Horizontal">
                <asp:ListItem Text="Tất cả" Value="2" Selected="True"></asp:ListItem>
                <asp:ListItem Text="Ti&#234;u đề" Value="1"></asp:ListItem>
            </asp:RadioButtonList>
        </td>
        <td style="background-color:#f0f0f0; text-align:right; padding-right:5px;">
            
                <asp:LinkButton ID="lbtMore" runat="server" Text="Nâng cao" ForeColor="#02509e" Font-Size="12px" Font-Bold="true" Font-Underline="true"></asp:LinkButton>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Panel ID="plSearchAdv" runat="server" Visible="false">
            <table width="100%" cellpadding="2" cellspacing="2" border="0">
                <tr>
                    <td>
                         Tìm trong khoảng thời gian
                    </td>
                    <td align="right">
                        Tìm trong chuyên mục
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0">
                            <tr><td style="width:30px;">Từ: &nbsp; </td>
                                <td><asp:TextBox ID="txtDateFrom" runat="server"></asp:TextBox></td>
                                <td style="width:3px;"></td>
                                <td><asp:ImageButton ID="imgCalendarPostFrom" runat="server" ImageUrl="~/images/calendar.gif" ImageAlign="AbsMiddle" /></td>
                            </tr>
                        </table>
                    </td>
                    <td align="right">
                        <asp:DropDownList ID="ddlCategory" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width:30px;">Đến: </td>
                                <td><asp:TextBox ID="txtDateTo" runat="server"></asp:TextBox></td>
                                <td style="width:3px;"></td>
                                <td><asp:ImageButton ID="imgCalendarPostTo" runat="server" ImageUrl="~/images/calendar.gif" ImageAlign="AbsMiddle" /></td>
                            </tr>
                        </table>
                    </td>
                    <td align="right">
                        Số lượng kết quả: 
                        <asp:DropDownList ID="ddlSumResult" runat="server">
                            <asp:ListItem Text="100 kết quả" Value="100"></asp:ListItem>
                            <asp:ListItem Text="200 kết quả" Value="200"></asp:ListItem>
                            <asp:ListItem Text="300 kết quả" Value="300"></asp:ListItem>
                            <asp:ListItem Text="400 kết quả" Value="400"></asp:ListItem>
                            <asp:ListItem Text="500 kết quả" Value="500"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Sắp xếp theo thứ tự: 
                        <asp:DropDownList ID="ddlOrder" runat="server">
                            <asp:ListItem Text="Ngày giảm dần" Value="1"></asp:ListItem>
                            <asp:ListItem Text="Ngày tăng dần" Value="2"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        Mỗi trang có: 
                        <asp:DropDownList ID="ddlPageSize" runat="server">
                            <asp:ListItem Text="10 kết quả" Value="10"></asp:ListItem>
                            <asp:ListItem Text="20 kết quả" Value="20"></asp:ListItem>
                            <asp:ListItem Text="30 kết quả" Value="30"></asp:ListItem>
                            <asp:ListItem Text="40 kết quả" Value="40"></asp:ListItem>
                            <asp:ListItem Text="50 kết quả" Value="50"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            </asp:Panel>
        </td>
    </tr>
</table>


<table width="100%">
	<tr>
		<td class="moduletable_title_l" style="border-bottom:1 #d2d2d2 solid;" valign="top"><%= CategoryName %></td>
	</tr>
	<tr >
		<td>
			<asp:DataGrid id="drgNews" runat="server" AllowPaging="true" PageSize="10" CellPadding="3" AutoGenerateColumns="False" ShowHeader="False"
				GridLines="None" Width="100%" >
				<Columns>
					<asp:TemplateColumn HeaderText="C&#225;c tin kh&#225;c">
						<ItemTemplate>
							
							
							<table cellpadding="0" cellspacing="0" width="100%">
                    <tr><td><asp:Image id="imgCat" align="left" BorderColor="#d2d2d2" BorderWidth="1" width="120" ImageUrl ='<%# PortalSettings.HomeDirectory & "news/" & DataBinder.Eval(Container, "DataItem.imagepath") %>' runat="server"></asp:Image>
							<asp:HyperLink CssClass="link_news_hot1" id="hplCatTitle" runat="server" text='<%# DataBinder.Eval(Container.DataItem,"title")%>' NavigateUrl='<%# FormatURL("itemid",DataBinder.Eval(Container.DataItem,"newid"),"catid",DataBinder.Eval(Container.DataItem,"CategoryId")) %>'/>
							<br />
							<asp:Label id="lbDatetime" runat="server" text='<%# DataBinder.Eval(Container.DataItem,"createdate")%>' /><BR>
							<asp:Label id="lbCatSummary" runat="server" text='<%# DataBinder.Eval(Container.DataItem,"summary")%>' /></td>
                        
                    </tr>
                    <tr><td height="5"></td></tr>
                    <tr><td background="images/line_1.jpg"><img src="images/line_1.jpg" height="1" width="1"></td></tr> 
                    <tr><td height="5"></td></tr>
                </table>
                
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
                <PagerStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" HorizontalAlign="Right" Visible="false" NextPageText="" PrevPageText=" >" />
			</asp:DataGrid>
	    </td>
	</tr>
</table>
<table class="tbPaging" width="100%" runat="server" id="tbPaging">
    <tr>
        <td style="text-align:right">
            <Dotnetnuke:Paging ID="ctlPaging" runat="server" />
        </td>
    </tr>
</table>
